package cn.leshua.req;

/**
 * @author eden
 * @date 2018/5/21 下午3:36
 * @desc
 */
public class LeshuaMicroPayReq extends LeshuaBaseReq {
	
	/** 支付类型**/
	public String pay_way;
	
	/** 订单金额，以分为单位 **/
	public String amount;
	
	/** 通知地址 **/
	public String notify_url;
	
	/** 下单IP地址 **/
	public String client_ip;
	
	/** T0标识，1：T0，不传或传0为T1 **/
	public String t0;
	
	/** 商品描述 **/
	public String body;
	
	/** 授权码（条码） **/
	public String auth_code;
	
	public LeshuaMicroPayReq(String pay_way,String merchant_id, String third_order_id,String amount, String notify_url, String client_ip,
			String t0, String body, String auth_code) {
		setService("upload_authcode");
		setPay_way(pay_way);
		setMerchant_id(merchant_id);
		setThird_order_id(third_order_id);
		setAmount(amount);
		setNotify_url(notify_url);
		setClient_ip(client_ip);
		setT0(t0);
		setBody(body);
		setAuth_code(auth_code);
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getPay_way() {
		return pay_way;
	}

	public void setPay_way(String pay_way) {
		this.pay_way = pay_way;
	}

	public String getNotify_url() {
		return notify_url;
	}

	public void setNotify_url(String notify_url) {
		this.notify_url = notify_url;
	}

	public String getClient_ip() {
		return client_ip;
	}

	public void setClient_ip(String client_ip) {
		this.client_ip = client_ip;
	}

	public String getT0() {
		return t0;
	}

	public void setT0(String t0) {
		this.t0 = t0;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public String getAuth_code() {
		return auth_code;
	}

	public void setAuth_code(String auth_code) {
		this.auth_code = auth_code;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("LeshuaMicroPayReq [amount=").append(amount).append(", notify_url=")
				.append(notify_url).append(", client_ip=").append(client_ip).append(", t0=").append(t0).append(", body=").append(body)
				.append(", auth_code=").append(auth_code).append(", service=").append(service).append(", merchant_id=").append(merchant_id)
				.append(", third_order_id=").append(third_order_id).append(", nonce_str=").append(nonce_str).append(", sign=").append(sign)
				.append("]");
		return builder.toString();
	}

}
